﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;
using wisdom_logistics.Dto;
using wisdom_logistics.Entity;
using wisdom_logistics.Interface;

namespace wisdom_logistics.Service
{
    public class PersonDtoService : ApplicationService,IPersonService
    {
        public readonly IRepository<PersonnelEntry, Guid> personnelEntries;
        public PersonDtoService(IRepository<PersonnelEntry, Guid> _personnelEntries)
        {
            personnelEntries = _personnelEntries;
        }
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        public List<PersonDto> Show()
        {
            var list = personnelEntries.ToList();
            return ObjectMapper.Map<List<PersonnelEntry>, List<PersonDto>>(list);
        }
    }
}
